import condition


# this class handles 'OR' conditions
class orNode:
    def __init__(self, condition1, condition2):
        self.condition1 = condition1
        self.condition2 = condition2

    def getCondition1(self):
        return self.condition1

    def getCondition2(self):
        return self.condition2

    def toSQL(self):
        return "(" + str(self.condition1.getAtt()) + str(self.condition1.getComp()) + str(self.condition1.getVal()) + " OR " + str(self.condition2.getAtt()) + str(self.condition2.getComp()) + str(self.condition2.getVal()) + ")"
